<template>
	<view class="sort-HNT">
		<template v-if="HNTs.length">
			<view class="box" v-for="(a,b) in HNTs" :key="b">
				<sort-HNTList :list="a"></sort-HNTList>
			</view>
		</template>
		<u-empty v-else class="empty" mode="history" icon="http://cdn.uviewui.com/uview/empty/history.png"></u-empty>
	</view>
</template>

<script>
	import lists from '../../components/sort-HNTList/sort-HNTList.vue'
	import api from '../../common/api.js'
	export default {
		components:{
			lists
		},
		data() {
			return {
				HNTs:[]
			}
		},
		methods: {
			
		},
		onLoad(res) {
			console.log(res);
			this.$api.sendRequest({
				url: api.GOODS_ITC,
				data: {
					goods_class_id:res.id
				},
				success: res => {
					console.log(333, res)
					this.HNTs=res.data.data
				}
			});
		},
		created() {
			
		}
	}
</script>

<style scoped>
	.empty {
		background: #fff;
		padding-top: 200rpx;
	}
.sort-HNT{
	background-color: #F3F3F3;
	/* height: 94.4vh; */
	padding-top: 20rpx;
}
</style>
